
<br>
<br>
<form action="prosespasangiklan.php" method="post" enctype="multipart/form-data">
<table>
<tr><td>Judul Iklan</td><td><input type="text" value="<?php echo $hasil ['judul_iklan']; ?>" class="textboxdaftar" name="judul_iklan"></td></tr>
<tr><td>Jenis Kontrakan</td><td><input type="radio" value="Rumah" name="jenis">&nbsp;Rumah&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" value="Kamar" name="jenis">&nbsp;Kamar</td></tr>
<tr><td>Alamat</td><td><input type="textarea" rows="5" cols="50" value="<?php echo $hasil ['alamat'];?>" name="alamat" style="margin: 0px 0px 10px; width: 213px; height: 100px;" > </textarea></td></tr>
<tr><td>Propinsi</td><td><select name="propinsi" id="propinsi">
            <option value="0">Pilih Provinsi</option>
            <?php
            $query  = "SELECT propinsi_id,propinsi FROM propinsi ORDER BY Propinsi ASC ";
            $result = mysql_query($query);
            $output = '';
            while($hasil = mysql_fetch_assoc($result))
            {
                $output .= "<option value='".$hasil['propinsi_id']."'>".$hasil['propinsi']."</option> \n";
            }
            echo $output;
            ?>
    
</select>
    </select>

</td></tr>

<tr><td>Kota</td><td><select name="kota" id="kota">
            <option>Pilih Provinsi Dulu</option>
        </select>

</td></tr>
<tr><td>Fasilitas</td><td><input type="checkbox" value="Internet" name="fasilitas1">&nbsp;Internet&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="Tempat Tidur" name="fasilitas2">&nbsp;Tempat Tidur&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="Garasi" name="fasilitas3">&nbsp;Garasi&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" value="AC" name="fasilitas4">&nbsp;Pendingin Ruangan</td></tr>
<tr><td>Banyak Kamar</td><td><input type="text" value="<?php echo $hasil ['banyak_kamar'];?>" name="banyak_kamar"></td></tr>
<tr><td>Banyak Kamar Mandi</td><td><input type="text" value="<?php echo $hasil ['banyak_kamarmandi'];?>" name="banyak_kamarmandi"></td></tr>
<tr><td>Jenis Pembayaran</td><td><select name="pembayaran"/>
                                  <option name="jenis_pembayaran" value="1"> Pertahun </option>
                                  <option name="jenis_pembayaran" value="2"> Perbulan </option></td></tr>
<tr><td>Harga</td><td><input type="text" value="<?php echo $hasil ['harga']?>" name="harga"></td></tr>

<tr><td>Luas</td><td>Panjang&nbsp;&nbsp;&nbsp;<input type="textbox" name="luas" style="margin: 0px 0px 10px; width: 80px;"> m&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lebar&nbsp;&nbsp;&nbsp;<input type="textbox" name="lebar" style="margin: 0px 0px 10px; width: 80px"> m</td></tr>
<tr><td>Deskripsi</td><td><input type="textbox" rows="5" cols="50" value="<?php echo $hasil ['keterangan'];?>" name ="keterangan" style="margin: 0px 0px 10px; width: 250px; height: 150px;"> </textarea></td></tr>
<tr><td>Upload Foto</td><td><input type="file" name="foto1"></td></tr>
<tr><td></td><td><input type="file" name="foto2"></td></tr>
<tr><td></td><td><input type="file" name="foto3"></td></tr>
<tr><td></td><td><input type="file" name="foto4"></td></tr>
<tr><td colspan="2" align="left"><input type="submit" value="Pasang"></td></tr>
</table>
</form>